package com.ujiuy.springsessiondemo.Thymeleaf;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Date;

@Controller
public class Demo5 {

    @GetMapping("/fifth")
    public String two(Model model){
        model.addAttribute("data",new Date());
        model.addAttribute("num",123.456);
        model.addAttribute("string","我是你爹");
        return "index5";
    }
}
